/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Matricula_Nota;

import java.util.ArrayList;

/**
 *
 * @author Jaime
 */
public class Nota {

    private Seccion seccion;
    private Curso curso;
    private Profesor profesor;
    private double practica1 = 0;
    private double practica2 = 0;
    private double exParcial = 0;
    private double exFinal = 0;
    private double notaFinal;

    public Nota() {
    }

    public Nota(Seccion seccion, Curso curso, Profesor profesor,
            double practica1, double practica2, double exParcial, double exFinal) {
        this.seccion = seccion;
        this.curso = curso;
        this.profesor = profesor;
        this.practica1 = practica1;
        this.practica2 = practica2;
        this.exParcial = exParcial;
        this.exFinal = exFinal;
    }

    public void calcularNotaFinal() {
        notaFinal = 0.20 * practica1 + 0.20 * practica2 + 0.30 * exParcial + 0.30 * exFinal;
    }

    public String getCondicion() {
        if (notaFinal <= 10) {
            return "DESAPROBADO";
        } else {
            return "APROBADO";
        }

    }

    public Curso getCurso() {
        return curso;
    }

    public double getExFinal() {
        return exFinal;
    }

    public double getExParcial() {
        return exParcial;
    }

    public double getPractica1() {
        return practica1;
    }

    public double getPractica2() {
        return practica2;
    }

    public Profesor getProfesor() {
        return profesor;
    }

    public Seccion getSeccion() {
        return seccion;
    }

    public double getNotaFinal() {
        return notaFinal;
    }

    public void setPractica1(double practica1) {
        this.practica1 = practica1;
    }

    public void setPractica2(double practica2) {
        this.practica2 = practica2;
    }

    public void setExParcial(double exParcial) {
        this.exParcial = exParcial;
    }

    public void setExFinal(double exFinal) {
        this.exFinal = exFinal;
    }
}
